package com.androidx.p013lv.base.utils;

import android.content.Context;
import androidx.core.content.ContextCompat;
import com.androidx.p013lv.base.C1010R;
import com.luck.picture.lib.style.PictureCropParameterStyle;
import com.luck.picture.lib.style.PictureParameterStyle;

/* renamed from: com.androidx.lv.base.utils.PictureStyle */
public class PictureStyle {
    private static PictureStyle pictureStyle;
    private Context context;
    private PictureCropParameterStyle mCropParameterStyle;
    private PictureParameterStyle mPictureParameterStyle;
    private PictureParameterStyle mPicturePreviewStyle;

    public static PictureStyle getInstance(Context context2) {
        if (pictureStyle == null) {
            pictureStyle = new PictureStyle(context2);
        }
        return pictureStyle;
    }

    private PictureStyle(Context context2) {
        this.context = context2;
        initStyle();
    }

    private void initStyle() {
        PictureParameterStyle pictureParameterStyle = new PictureParameterStyle();
        this.mPictureParameterStyle = pictureParameterStyle;
        pictureParameterStyle.isChangeStatusBarFontColor = false;
        this.mPictureParameterStyle.isOpenCompletedNumStyle = false;
        this.mPictureParameterStyle.isOpenCheckNumStyle = true;
        this.mPictureParameterStyle.pictureStatusBarColor = ContextCompat.getColor(this.context, C1010R.C1011color.bgColor);
        this.mPictureParameterStyle.pictureTitleBarBackgroundColor = ContextCompat.getColor(this.context, C1010R.C1011color.bgColor);
        this.mPictureParameterStyle.pictureTitleUpResId = C1010R.C1012drawable.picture_icon_arrow_up;
        this.mPictureParameterStyle.pictureTitleDownResId = C1010R.C1012drawable.picture_icon_arrow_down;
        this.mPictureParameterStyle.pictureFolderCheckedDotStyle = C1010R.C1012drawable.picture_orange_oval;
        this.mPictureParameterStyle.pictureLeftBackIcon = C1010R.C1012drawable.picture_icon_back;
        this.mPictureParameterStyle.pictureTitleTextSize = 18;
        this.mPictureParameterStyle.pictureTitleTextColor = ContextCompat.getColor(this.context, C1010R.C1011color.white);
        this.mPictureParameterStyle.pictureRightTextSize = 18;
        this.mPictureParameterStyle.pictureRightDefaultTextColor = ContextCompat.getColor(this.context, C1010R.C1011color.white);
        this.mPictureParameterStyle.pictureAlbumStyle = C1010R.C1012drawable.base_bg_picture_item_select;
        this.mPictureParameterStyle.pictureCheckedStyle = C1010R.C1012drawable.base_shape_checkbox_num_selector;
        this.mPictureParameterStyle.pictureBottomBgColor = ContextCompat.getColor(this.context, C1010R.C1011color.white);
        this.mPictureParameterStyle.pictureCheckNumBgStyle = C1010R.C1012drawable.base_bg_num_oval_blue;
        this.mPictureParameterStyle.picturePreviewTextSize = 16;
        this.mPictureParameterStyle.picturePreviewTextColor = ContextCompat.getColor(this.context, C1010R.C1011color.black);
        this.mPictureParameterStyle.pictureUnPreviewTextColor = ContextCompat.getColor(this.context, C1010R.C1011color.gray);
        this.mPictureParameterStyle.pictureCompleteTextSize = 16;
        this.mPictureParameterStyle.pictureCompleteTextColor = ContextCompat.getColor(this.context, C1010R.C1011color.black);
        this.mPictureParameterStyle.pictureUnCompleteTextColor = ContextCompat.getColor(this.context, C1010R.C1011color.gray);
        this.mPictureParameterStyle.picturePreviewBottomBgColor = ContextCompat.getColor(this.context, C1010R.C1011color.white);
        this.mPictureParameterStyle.pictureOriginalControlStyle = C1010R.C1012drawable.picture_original_blue_checkbox;
        this.mPictureParameterStyle.pictureOriginalFontColor = ContextCompat.getColor(this.context, C1010R.C1011color.black);
        this.mPictureParameterStyle.pictureExternalPreviewDeleteStyle = C1010R.C1012drawable.base_ic_white_delete;
        this.mPictureParameterStyle.f1970a = false;
        this.mCropParameterStyle = new PictureCropParameterStyle(ContextCompat.getColor(this.context, C1010R.C1011color.bgColor), ContextCompat.getColor(this.context, C1010R.C1011color.bgColor), ContextCompat.getColor(this.context, C1010R.C1011color.white), this.mPictureParameterStyle.isChangeStatusBarFontColor);
    }

    private void initPreviewStyle() {
        PictureParameterStyle pictureParameterStyle = new PictureParameterStyle();
        this.mPicturePreviewStyle = pictureParameterStyle;
        pictureParameterStyle.isChangeStatusBarFontColor = false;
        this.mPicturePreviewStyle.isOpenCompletedNumStyle = false;
        this.mPicturePreviewStyle.isOpenCheckNumStyle = true;
        this.mPicturePreviewStyle.pictureStatusBarColor = ContextCompat.getColor(this.context, C1010R.C1011color.black);
        this.mPicturePreviewStyle.pictureTitleBarBackgroundColor = ContextCompat.getColor(this.context, C1010R.C1011color.black);
    }

    public PictureParameterStyle getPictureParameterStyle() {
        return this.mPictureParameterStyle;
    }

    public PictureCropParameterStyle getCropParameterStyle() {
        return this.mCropParameterStyle;
    }

    public PictureParameterStyle getPicturePreviewStyle() {
        initPreviewStyle();
        return this.mPicturePreviewStyle;
    }
}
